<div>
<a href='javascript:history.back(-1);'>点击返回</a>
   <form action='/redis.php/index/add_save' method='post'>
       <input type='text' placeholder='姓名' name='username' value="{$info['username'] | default=''}"/>
	   <input type='text' placeholder='年龄' name='age' value="{$info['age'] | default=''}"/>
	   <input type='hidden' name='id' value="{$info['id'] | default=0}"/>
	   <select name='sex'>
	       <option value='男' {if isset($info['sex']) and $info['sex']=='男'}selected{/if}>男</option>
	       <option value='女'  {if isset($info['sex']) and $info['sex']=='女'}selected{/if}>女</option>
	   </select>
	   <input type='submit' value='提交'/>
   </form>
</div>
<style>
   input,select{
      width:100px;
	  height:30px;
 }
</style>